package org.example.commend.t2;

public class T2 implements Cloneable{

    private Tb2 tb2;

    public static T2 of(Tb2 tb2){
        T2 t2 = new T2();
        t2.tb2 = tb2;
        return t2;
    }

    public T2 next(){
        System.out.println("Next --> ");
        try {
            return ((T2) this.clone()).next();
        } catch (CloneNotSupportedException e) {
            throw new RuntimeException(e);
        }
    }

}
